package com.ls.pattern.prototype.deep;



import java.util.List;

/**
 * 使用json转换实现深克隆。
 *
 * @author 挥之以墨
 */

public class DeepPersonByJson {
    private String name;

    private Integer age;

    private List<String> hobbies;

    @Override
    public String toString() {
        return "DeepPersonByJson{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", hobbies=" + hobbies +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }
}
